namespace WanPiJie {
    	using System;
    	
    	
    	/// <summary>
    	/// 表名：ehr_GrowthRecord 主键列：Id
    	/// </summary>
    	[SerializableAttribute()]
    	public partial class _GrowthRecord : MySoft.Data.Entity {
    		
    		protected Int32 _Id;
    		
    		protected DateTime _AddTime;
    		
    		protected DateTime _UpdateTime;
    		
    		protected Int32 _BabyId;
    		
    		protected DateTime _SurveyDate;
    		
    		protected Double _Height;
    		
    		protected Double _Weight;
    		
    		protected Double _HeadSize;
    		
    		protected Double _ChestSize;
    		
    		public Int32 Id {
    			get {
    				return this._Id;
    			}
    			set {
    				this.OnPropertyValueChange(_.Id, _Id, value);
    				this._Id = value;
    			}
    		}
    		
    		public DateTime AddTime {
    			get {
    				return this._AddTime;
    			}
    			set {
    				this.OnPropertyValueChange(_.AddTime, _AddTime, value);
    				this._AddTime = value;
    			}
    		}
    		
    		public DateTime UpdateTime {
    			get {
    				return this._UpdateTime;
    			}
    			set {
    				this.OnPropertyValueChange(_.UpdateTime, _UpdateTime, value);
    				this._UpdateTime = value;
    			}
    		}
    		
    		/// <summary>
    		/// 宝宝编号
    		/// </summary>
    		public Int32 BabyId {
    			get {
    				return this._BabyId;
    			}
    			set {
    				this.OnPropertyValueChange(_.BabyId, _BabyId, value);
    				this._BabyId = value;
    			}
    		}
    		
    		/// <summary>
    		/// 测量日期
    		/// </summary>
    		public DateTime SurveyDate {
    			get {
    				return this._SurveyDate;
    			}
    			set {
    				this.OnPropertyValueChange(_.SurveyDate, _SurveyDate, value);
    				this._SurveyDate = value;
    			}
    		}
    		
    		/// <summary>
    		/// 身高
    		/// </summary>
    		public Double Height {
    			get {
    				return this._Height;
    			}
    			set {
    				this.OnPropertyValueChange(_.Height, _Height, value);
    				this._Height = value;
    			}
    		}
    		
    		/// <summary>
    		/// 体重
    		/// </summary>
    		public Double Weight {
    			get {
    				return this._Weight;
    			}
    			set {
    				this.OnPropertyValueChange(_.Weight, _Weight, value);
    				this._Weight = value;
    			}
    		}
    		
    		/// <summary>
    		/// 头围
    		/// </summary>
    		public Double HeadSize {
    			get {
    				return this._HeadSize;
    			}
    			set {
    				this.OnPropertyValueChange(_.HeadSize, _HeadSize, value);
    				this._HeadSize = value;
    			}
    		}
    		
    		/// <summary>
    		/// 胸围
    		/// </summary>
    		public Double ChestSize {
    			get {
    				return this._ChestSize;
    			}
    			set {
    				this.OnPropertyValueChange(_.ChestSize, _ChestSize, value);
    				this._ChestSize = value;
    			}
    		}
    		
    		/// <summary>
    		/// 获取实体对应的表名
    		/// </summary>
    		protected override MySoft.Data.Table GetTable() {
    			return new MySoft.Data.Table<_GrowthRecord>("ehr_GrowthRecord");
    		}
    		
    		/// <summary>
    		/// 获取实体中的标识列
    		/// </summary>
    		protected override MySoft.Data.Field GetIdentityField() {
    			return _.Id;
    		}
    		
    		/// <summary>
    		/// 获取实体中的主键列
    		/// </summary>
    		protected override MySoft.Data.Field[] GetPrimaryKeyFields() {
    			return new MySoft.Data.Field[] {
    					_.Id};
    		}
    		
    		/// <summary>
    		/// 获取列信息
    		/// </summary>
    		protected override MySoft.Data.Field[] GetFields() {
    			return new MySoft.Data.Field[] {
    					_.Id,
    					_.AddTime,
    					_.UpdateTime,
    					_.BabyId,
    					_.SurveyDate,
    					_.Height,
    					_.Weight,
    					_.HeadSize,
    					_.ChestSize};
    		}
    		
    		/// <summary>
    		/// 获取列数据
    		/// </summary>
    		protected override object[] GetValues() {
    			return new object[] {
    					this._Id,
    					this._AddTime,
    					this._UpdateTime,
    					this._BabyId,
    					this._SurveyDate,
    					this._Height,
    					this._Weight,
    					this._HeadSize,
    					this._ChestSize};
    		}
    		
    		/// <summary>
    		/// 给当前实体赋值
    		/// </summary>
    		protected override void SetValues(MySoft.Data.IRowReader reader) {
    			if ((false == reader.IsDBNull(_.Id))) {
    				this._Id = reader.GetInt32(_.Id);
    			}
    			if ((false == reader.IsDBNull(_.AddTime))) {
    				this._AddTime = reader.GetDateTime(_.AddTime);
    			}
    			if ((false == reader.IsDBNull(_.UpdateTime))) {
    				this._UpdateTime = reader.GetDateTime(_.UpdateTime);
    			}
    			if ((false == reader.IsDBNull(_.BabyId))) {
    				this._BabyId = reader.GetInt32(_.BabyId);
    			}
    			if ((false == reader.IsDBNull(_.SurveyDate))) {
    				this._SurveyDate = reader.GetDateTime(_.SurveyDate);
    			}
    			if ((false == reader.IsDBNull(_.Height))) {
    				this._Height = reader.GetDouble(_.Height);
    			}
    			if ((false == reader.IsDBNull(_.Weight))) {
    				this._Weight = reader.GetDouble(_.Weight);
    			}
    			if ((false == reader.IsDBNull(_.HeadSize))) {
    				this._HeadSize = reader.GetDouble(_.HeadSize);
    			}
    			if ((false == reader.IsDBNull(_.ChestSize))) {
    				this._ChestSize = reader.GetDouble(_.ChestSize);
    			}
    		}
    		
    		public override int GetHashCode() {
    			return base.GetHashCode();
    		}
    		
    		public override bool Equals(object obj) {
    			if ((obj == null)) {
    				return false;
    			}
    			if ((false == typeof(_GrowthRecord).IsAssignableFrom(obj.GetType()))) {
    				return false;
    			}
    			if ((((object)(this)) == ((object)(obj)))) {
    				return true;
    			}
    			return false;
    		}
    		
    		public class _ {
    			
    			/// <summary>
    			/// 表示选择所有列，与*等同
    			/// </summary>
    			public static MySoft.Data.AllField All = new MySoft.Data.AllField<_GrowthRecord>();
    			
    			/// <summary>
    			/// 字段名：Id - 数据类型：Int32
    			/// </summary>
    			public static MySoft.Data.Field Id = new MySoft.Data.Field<_GrowthRecord>("Id");
    			
    			/// <summary>
    			/// 字段名：AddTime - 数据类型：DateTime
    			/// </summary>
    			public static MySoft.Data.Field AddTime = new MySoft.Data.Field<_GrowthRecord>("AddTime");
    			
    			/// <summary>
    			/// 字段名：UpdateTime - 数据类型：DateTime
    			/// </summary>
    			public static MySoft.Data.Field UpdateTime = new MySoft.Data.Field<_GrowthRecord>("UpdateTime");
    			
    			/// <summary>
    			/// 宝宝编号 - 字段名：BabyId - 数据类型：Int32
    			/// </summary>
    			public static MySoft.Data.Field BabyId = new MySoft.Data.Field<_GrowthRecord>("BabyId");
    			
    			/// <summary>
    			/// 测量日期 - 字段名：SurveyDate - 数据类型：DateTime
    			/// </summary>
    			public static MySoft.Data.Field SurveyDate = new MySoft.Data.Field<_GrowthRecord>("SurveyDate");
    			
    			/// <summary>
    			/// 身高 - 字段名：Height - 数据类型：Double
    			/// </summary>
    			public static MySoft.Data.Field Height = new MySoft.Data.Field<_GrowthRecord>("Height");
    			
    			/// <summary>
    			/// 体重 - 字段名：Weight - 数据类型：Double
    			/// </summary>
    			public static MySoft.Data.Field Weight = new MySoft.Data.Field<_GrowthRecord>("Weight");
    			
    			/// <summary>
    			/// 头围 - 字段名：HeadSize - 数据类型：Double
    			/// </summary>
    			public static MySoft.Data.Field HeadSize = new MySoft.Data.Field<_GrowthRecord>("HeadSize");
    			
    			/// <summary>
    			/// 胸围 - 字段名：ChestSize - 数据类型：Double
    			/// </summary>
    			public static MySoft.Data.Field ChestSize = new MySoft.Data.Field<_GrowthRecord>("ChestSize");
    		}
    	}
    }
